home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12420 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  44 lines

  1. Path: news.NetVision.net.il!news
  2. From: iti@Jerusalem.netvision.net.il
  3. Newsgroups: comp.os.ms-windows.programmer.tools.mfc,comp.lang.c++,comp.lang.basic.visual.database
  4. Subject: HELP!! VB - DLL
  5. Date: Tue, 19 Mar 96 12:24:35 PDT
  6. Organization: NetVision LTD.
  7. Message-ID: <NEWTNews.24485.827267151.Postmaster@Jerusalem.netvision.net.il>
  8. NNTP-Posting-Host: ts002p2.pop2a.netvision.net.il
  9. Mime-Version: 1.0
  10. Content-Type: TEXT/PLAIN; charset=US-ASCII
  11. X-Newsreader: NEWTNews & Chameleon -- TCP/IP for MS Windows from NetManage
  12.  
  13.  
  14.  
  15. I am trying to link a Visual Basic Application with a DLL (written in 
  16. C++).  The definition of one of the functions in the DLL is ...
  17.  
  18. extern "C"
  19. {   
  20.     int __export myFunc (HWND clientWnd);
  21. }
  22.  
  23. I declare this function in the VB Application as ... 
  24.  
  25. "Declare Function myFunc Lib "myDll.dll" (ByVal hWnd%) As Integer"
  26.  
  27. When I run the VB Application I get the Error...
  28.     "Sub or Function not defined"
  29.  
  30.  
  31. How can I declare the function in VB so that it recognizes this function ???
  32.  
  33. If you can help I would appreceate it if you can send an answer to my E-Mail
  34. address:    iti@netvision.net.il
  35.  
  36. Thanks
  37. Yaakov
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.